package com.atguigu.gmall.juc.juc;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/5/28 15:03
 */
public class Mydata {
    volatile  int number = 0;
    public void addplus(){
        number++;
    }
    AtomicInteger atomicInteger =new AtomicInteger();
    public  void ayomicAdd(){
        atomicInteger.getAndIncrement();
    }
}
